package com.naiterui.ehp.bp.support.config;

import java.util.Date;

import org.springframework.core.convert.converter.Converter;

import cn.hutool.core.date.DateUtil;

/**
 * @author gaoliangliang
 * @since 2022/1/12
 */
public class DateConverterConfig implements Converter<String, Date> {

    @Override
    public Date convert(String source) {
        return DateUtil.parse(source);
    }

}